package com.atguigu.common.constant;

public class WareContsant {

    public enum PurchaseConstant{
        NEW(0,"新建"),
        ASSGINED(1,"已分配"),
        DOING(2,"已领取"),
        DONE(3,"已完成"),
        ERROR(4,"有异常");
        private Integer code;
        private String msg;

         PurchaseConstant(Integer code,String msg){
            this.code=code;
            this.msg=msg;
        }

        public Integer getCode() {
            return code;
        }
        public String getMsg(){
             return msg;
        }
    }
    public enum PurchaseDetailConstant{
        NEW(0,"新建"),
        ASSGINED(1,"已分配"),
        DOING(2,"正在采购"),
        DONE(3,"已完成"),
        ERROR(4,"采购失败");
        private Integer code;
        private String msg;

        PurchaseDetailConstant(Integer code,String msg){
            this.code=code;
            this.msg=msg;
        }

        public Integer getCode() {
            return code;
        }
        public String getMsg(){
            return msg;
        }
    }
}
